package com.example.uCenter.common;

public class Code {
    public static final Integer SAVE_OK=20001;
    public static final Integer UPDATE_OK=20031;
    public static final Integer DELETE_OK=20051;
    public static final Integer DELETE_ALL_OK=20061;
    public static final Integer GET_OK=20071;
    public static final Integer GET_ALL_OK=20091;
    public static final Integer GET_PAGE_OK=20111;
    public static final Integer RegisterAdd_OK=20131;

    public static final Integer SAVE_ERROR=20000;
    public static final Integer UPDATE_ERROR=20030;
    public static final Integer DELETE_ERROR=20050;
    public static final Integer DELETE_ALL_ERROR=20060;
    public static final Integer GET_ERROR=20070;
    public static final Integer GET_ALL_ERROR=20090;
    public static final Integer GET_PAGE_ERROR=20110;
    public static final Integer RegisterAdd_ERROR=20110;

    public static final Integer ONE = 1;
    public static final Integer MIN = 60 * ONE;
    public static final Integer FIVE_MIN = 5 * MIN;
    public static final Integer HOUR = 60 * MIN;
    public static final Integer TWO_HOUR = 2 * HOUR;
    public static final Integer DAY = 24 * HOUR;
    public static final Long WEEK = Long.valueOf(DAY * 7);
}
